package com.fc.async;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.task.TaskExecutor;
import org.springframework.stereotype.Controller;

/**
 * Created by IntelliJ IDEA.
 * User :zhaiyujin
 * Date :2017/5/23
 * Time :17:17
 * Msg  :玩玩多线程怎么玩
 */


public class TestMyThread implements  Runnable {

    String name=null;
    int i=0;
    public TestMyThread(String name,int i) {
        this.name=name;
        this.i=i;
    }

    @Override
    public void run() {
        for(int i=0;i<10000;i++){
        System.out.println("创建任务并提交到线程池中：task"+i );

        }
    }



}
